﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TermList.aspx.cs" Inherits="WebDesign.maneger.TermList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 251px;
        }
        .style2
        {
            width: 80px;
        }
        .style3
        {
            width: 80px;
            height: 25px;
        }
        .style4
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script language=javascript type="text/javascript">
    function deleteterm() {
        if (confirm("ایا از حذف مطمئن هستید؟") == true)
            return true;
        else 
        return false;
    }
    
</script>
<div style="position: absolute; width: 662px; height: 190px; z-index: 1; left: 199px; top: 115px" 
        id="Div1">
&nbsp;<table style="width: 100%; height: 86px;">
        <tr>
            <td>
                <asp:Label ID="lblName" runat="server" Text="نام دوره"></asp:Label>
            </td>
            <td>
                :</td>
            <td>
                <asp:TextBox ID="txtTermName" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="Label6" runat="server" Text="روزهای برگذاری"></asp:Label>
            </td>
            <td>
                :</td>
            <td>
                <asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTeacher" runat="server" Text="مدرس"></asp:Label>
            </td>
            <td>
                :</td>
            <td>
                <asp:TextBox ID="txtTeacher" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="Label7" runat="server" Text="شهریه"></asp:Label>
            </td>
            <td>
                :</td>
            <td>
                <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="تاریخ شروع"></asp:Label>
            </td>
            <td>
                :</td>
            <td>
                <asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="Label8" runat="server" Text="تعداد جلسات"></asp:Label>
            </td>
            <td>
                :</td>
            <td>
                <asp:TextBox ID="txtُSessinNum" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width: 100%;">
        <tr>
            <td class="style2">
                &nbsp;
                <asp:Label ID="lblExpr" runat="server" Text="توضیحات"></asp:Label>
            </td>
            <td>
                &nbsp;
                :</td>
            <td>
                &nbsp;<asp:TextBox ID="txtExpr" runat="server" Width="310px"></asp:TextBox>
&nbsp;</td>
            <td>
                <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="ثبت" 
                    Width="98px" style="margin-right: 100px" />
            </td>
        </tr>
        <tr>
            <td class="style3">
            </td>
            <td class="style4">
            </td>
            <td class="style4">
            </td>
            <td class="style4">
                <asp:Label ID="lblPayam" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        </table>

    <table style="width:100%; margin-top: 17px;">
        <tr>
            <td class="style1">
                <asp:Label ID="Label9" runat="server" 
                    Text="برای حذف ،دوره مورد نظر را از جدول انتخاب کنید"></asp:Label>
            </td>
            <td>
                :</td>
            <td>
                <asp:Button ID="btnDelete" runat="server" onclick="Button1_Click" Text="حذف" 
                    Width="85px" onclientclick="return deleteterm();" />
            </td>
        </tr>
    </table>
    <br />
    </div>
<div style="position: absolute; width: 662px; height: 272px; z-index: 1; left: 197px; top: 327px" 
        id="layer1">
    <asp:GridView ID="gvTermList" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" GridLines="Vertical" AllowPaging="True">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:BoundField DataField="TermName" HeaderText="نام دوره" />
            <asp:BoundField DataField="Teacher" HeaderText="مدرس" />
            <asp:BoundField DataField="StartDate" HeaderText="تاریخ شروع" />
            <asp:BoundField DataField="DaysNum" HeaderText="روزهای برگذاری" />
            <asp:BoundField DataField="SessionNum" HeaderText="تعداد جلسات" />
            <asp:BoundField DataField="Price" HeaderText="شهریه" />
            <asp:BoundField DataField="Expr" HeaderText="توضیحات" />
            <asp:TemplateField HeaderText="انتخاب">
                <ItemTemplate>
                    <asp:CheckBox ID="ChkTerm" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            <asp:CheckBox ID="CheckBox1" runat="server" />
        </EmptyDataTemplate>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>
&nbsp;</div>
</asp:Content>
